<?php

require('configs/include.php');

class a_cargar_editar_programa extends super_controller {

    public function cargar_programas() {

        $cod['programa']['id'] = $this->post->id;
        $options['programa']['lvl2'] = "one";
        $this->orm->connect();
        $this->orm->read_data(array("programa"), $options, $cod);
        $programas = $this->orm->get_objects("programa");
        $this->orm->close();

       
        $datos_programas=$programas[0]->get('id') . "****" . $programas[0]->get('nombre') . "****" . $programas[0]->get('funcionalidad') . "****" . $programas[0]->get('codigo_fuente')."****".$programas[0]->get('fecha_envio');
        
        
        echo $datos_programas;
        
        
    }

    public function run() {

        $this->cargar_programas();
    }

}

$call = new a_cargar_editar_programa();
$call->run();
?>